package com.ruoyi.web.controller.wq;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.framework.web.service.CommentGiveService;
import com.ruoyi.wq.domain.WqCommentGive;

/**
 * 评论点赞Controller
 * 
 * @author ruoyi
 * @date 2022-03-29
 */
@RestController
@RequestMapping("/wq/commentGive")
public class WqCommentGiveController extends BaseController{
    
	@Autowired
    private CommentGiveService commentGiveService;

    /**
     * 新增评论点赞
     */
    @PostMapping("/add")
    public AjaxResult add(@RequestBody WqCommentGive wqCommentGive){
        return AjaxResult.success(commentGiveService.insertWqCommentGive(wqCommentGive));
    }
    
}
